<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3></h3>
</div>
<div id="printArea">
<h1 align="center" style="color:green">用户总账单</h1>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tbl_list">
	<tr>
     	<th colspan="13" align="left"><input type="button" class="websub" onclick="jqueryPrint();" value="打 印" /></th>
    </tr>
	<tr>
     	<th colspan="13" align="left"><font style="font-weight:bold">参与分摊的账单</font></th>
    </tr>
	<tr>
      <th width="5%">序号</th>
      <th width="10%">楼栋</th>
      <th width="5%">单元</th>
      <th width="5%">楼层</th>
      <th width="5%">门牌</th>
      <th width="9%">是否参与计量</th>
      <th width="9%">供热面积</th>
      <th width="9%">基本热费</th>
      <th width="9%">分摊热费</th>
      <th width="9%">热费合计</th>
      <th width="9%">面积热费</th>
      <th width="9%">热费差值</th>
      <th width="14%">操作</th>
    </tr>
    <s:iterator value="shareUserResultList" var="cur" status="vs">
      <s:if test="#cur.is_cal==0">
      <tr align="center">
        <td><abean:counter write="true" /></td>
        <td><s:property value="#cur.b_name"/></td>
        <td><s:property value="#cur.unit_no"/></td>
        <td><s:property value="#cur.floor_no"/></td>
        <td><s:property value="#cur.house_num"/></td>
        <td>
        	<s:if test="#cur.is_cal==0">参与</s:if>
        	<s:if test="#cur.is_cal==1">不参与</s:if>
		</td>
		<td><s:property value="#cur.hear_area"/></td>
		<td><s:property value="#cur.base_heat_money"/></td>
		<td><s:property value="#cur.share_heat_money"/></td>
		<td><s:property value="#cur.base_heat_money+#cur.share_heat_money"/></td>
		<td><s:property value="#cur.mjrf"/></td>
		<td><s:property value="#cur.base_heat_money+#cur.share_heat_money-#cur.mjrf"/></td>
        <td>
        	<a href="ShareUserResult!view.action?id=<s:property value='#cur.id'/>">查看</a> 
        </td>
      </tr>
      </s:if>
    </s:iterator>
    <tr>
     	<th colspan="13" align="left"><font style="font-weight:bold">不参与分摊的账单</font></th>
    </tr>
    <tr>
      <th width="5%">序号</th>
      <th width="10%">楼栋</th>
      <th width="5%">单元</th>
      <th width="5%">楼层</th>
      <th width="5%">门牌</th>
      <th width="9%">是否参与计量</th>
      <th width="9%">供热面积</th>
      <th width="9%">基本热费</th>
      <th width="9%">分摊热费</th>
      <th width="9%">热费合计</th>
      <th width="9%">面积热费</th>
      <th width="9%">热费差值</th>
      <th width="14%">操作</th>
    </tr>
    <s:iterator value="shareUserResultList" var="cur" status="vs">
      <s:if test="#cur.is_cal==1">
      <tr align="center">
        <td><abean:counter write="true" /></td>
        <td><s:property value="#cur.b_name"/></td>
        <td><s:property value="#cur.unit_no"/></td>
        <td><s:property value="#cur.floor_no"/></td>
        <td><s:property value="#cur.house_num"/></td>
        <td>
        	<s:if test="#cur.is_cal==0">参与</s:if>
        	<s:if test="#cur.is_cal==1">不参与</s:if>
		</td>
		<td><s:property value="#cur.hear_area"/></td>
		<td>0</td>
		<td>0</td>
		<td>0</td>
		<td><s:property value="#cur.mjrf"/></td>
		<td>0</td>
        <td>
        	<a href="ShareUserResult!view.action?id=<s:property value='#cur.id'/>">查看</a> 
        </td>
      </tr>
      </s:if>
    </s:iterator>
</table>
</div>
<script type="text/javascript" src="/commons/scripts/jquery.printarea.js"></script>
<script type="text/javascript">
function jqueryPrint(){
	 $j("div#printArea").printArea();  
}
</script>
</body>
</html>
